package com.packet.utils;

// 具体观察者类（学生视图）
public class StudentView implements Observer {
    private String studentName;

    public StudentView(String studentName) {
        this.studentName = studentName;
    }

    @Override
    public void update(String assignmentName, String status) {
        if(status != null){
            System.out.println("发送给： " + studentName + ", 通知 '" + assignmentName + "' 现在状态为 " + status);
        }

    }
}
